/*
 * @Description: 项目经理月报接口
 * @Author: wind-lc
 * @version: 1.0
 * @Date: 2022-04-08 09:47:02
 * @LastEditTime: 2022-04-12 09:56:44
 * @FilePath: \cscec-pms-admin\src\api\project\projectManagerMonthlyReport\index.js
 */
import request from '@/utils/request2'
import { faceApiUrl } from '@/api/config'
const api = {
  list: {
    getPageMonthlyReportBySearch: faceApiUrl + '/projectManagerMonthlyReport/getPageMonthlyReportBySearch'
  },
  view: {
    queryProjectManagerMonthlyReportDetail: faceApiUrl + '/projectManagerMonthlyReport/queryProjectManagerMonthlyReportDetail',
    batchUpdateMonthlyReport: faceApiUrl + '/projectManagerMonthlyReport/batchUpdateMonthlyReport'
  }
}
// 列表接口
const list = {
  /**
   * @description: 获取项目经理月报列表
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  getPageMonthlyReportBySearch: data => {
    return request({
      url: api.list.getPageMonthlyReportBySearch,
      method: 'post',
      data
    })
  }
}
// 详情接口
const view = {
  /**
   * @description: 获取项目经理月报详情
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  queryProjectManagerMonthlyReportDetail: data => {
    return request({
      url: `${api.view.queryProjectManagerMonthlyReportDetail}/${data}`,
      method: 'get',
      data
    })
  },
  /**
   * @description: 修改项目经理月报
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  batchUpdateMonthlyReport: data => {
    return request({
      url: api.view.batchUpdateMonthlyReport,
      method: 'post',
      data
    })
  }
}
export {
  list,
  view
}

